WooCommerce\Square\Gateway\Digital_Wallet D

Total Complexity 237
Dependencies 10
Dependents 1
Total lines 1,297
Lines of code 751
Logical lines of code 402
Comment lines 358
Methods 34
Properties 5

Methods 34

Method Rating Maintainability Complexity Lines of code
ajax_recalculate_totals()
B
35 18 83
init()
B
42 19 42
build_payment_request_line_items()
A
41 14 54
get_product_payment_request()
A
42 12 47
apple_pay_domain_registration()
A
50 12 25
build_payment_request()
A
41 9 53
allowed_for_product_page()
A
52 11 22
get_payment_request_for_context()
A
50 10 27
register_apple_pay_domain()
A
47 9 34
allowed_for_cart()
A
56 10 15
is_available_for_page()
A
58 10 14
ajax_get_payment_request()
A
52 9 21
get_state_code_by_name()
A
54 9 21
get_current_page()
A
57 9 15
check_apple_pay_verification_file()
S
51 7 27
admin_notices()
S
49 6 31
filter_checkout_fields()
S
59 7 13
filter_posted_data()
S
61 7 12
__construct()
S
55 6 17
calculate_shipping()
S
48 5 32
ajax_add_to_cart()
S
54 5 18
enqueue_scripts()
S
55 4 18
render_button()
S
51 3 26
get_hidden_button_options()
S
67 4 7
is_available()
S
70 4 6
ajax_process_checkout()
S
64 3 10
update_shipping_method()
S
65 3 9
get_option_is_apple_pay_enabled()
S
69 3 6
get_cart_totals()
S
61 2 12
apple_pay_verification_file_location()
S
76 2 3
is_digital_wallet_enabled()
S
78 2 3
supported_product_types()
S
62 1 14
get_available_pages()
S
65 1 11
get_localised_data()
S
82 1 3